package com.yf.service;

import com.yf.bean.AnswerBean;
import com.yf.bean.ExamBean;
import com.yf.entity.ExamEntity;

import java.util.List;
import java.util.Map;

public interface ExamService {
    Integer insert(Map<String, Object> params);
    Integer add408Question(ExamEntity bean);
    ExamEntity getProblemByYear(Map<String, String> params);
    List<ExamBean> getTargetQus(List<Long> ids);
    List<ExamBean> getFixedQus(List<Long> ids);
    List<Integer> getQusIDByYear(Map<String, String> year);
    ExamBean getQusByYearNumber(Map<String, String> params);
    ExamBean getQuestionById(Long id);
    List<AnswerBean> getAnswerByPid(Integer pid);
    Boolean existedQus(ExamBean bean);
    List<ExamBean> getQusDescription(List<Integer> ids);
    Integer userAddAnswer(String answer, Integer pid, Integer aid);
    AnswerBean getUserAnswer(Integer pid);
    Boolean delAnswer(Integer aid);
    Boolean userAddNote();
}
